//定义通用返回接口类型
export type ApiResult<T> = {
  msg: string
  code: number
  data: T
}

export type ApiUser = {
  id: string
  nickname: string
  tenantId: string
  avatar: string
  deptId: string
  auths: string[]
}

export type PageApi = {
  current: 1
  size: 10
  startTime?: string
  endTime?: string
}

export type PageSchema<T> = {
  total: number
  rows: T[]
}

export type ApiEntity = {
  id: string
  createTime: string
  updateTime: string
}


export type BaseId = {
  id: string
}

export type BaseIds = {
  ids: string[]
}
export type KeyValue<KEY, VALUE, EXT> = {
  key: KEY
  value: VALUE
  extend: EXT
}
export type Kv = {
  key: string
  value: object
}


export interface ApiDelete extends ApiEntity {
  isDelete: number
}